-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Add keep_whitespace
and whitespace_chars
to read_fwf
#51577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…lowing more control over handling of whitespace in fields and removing the requirement to specify a `delimiter` in order to preserve whitespace. (pandas-dev#51569) Signed-off-by: Ronald Barnes <[email protected]>
…options to `read_fwf`. (pandas-dev#51659) Signed-off-by: Ronald Barnes <[email protected]>
…andas-dev#51569) Signed-off-by: Ronald Barnes <[email protected]>
…arguments for `read_fwf`. (pandas-dev#51569) Signed-off-by: Ronald Barnes <[email protected]>
…into read_fwf_whitespace Signed-off-by: Ronald Barnes <[email protected]>
This PR adds 2 options to In this version, However, it still is a default that modifies data while it's being read in. At least the expected behaviour is now clearly documented. Personally, I'd prefer a default of The tuple represents (leading,trailing) whitespace. This is an enhancement, giving more fine-grained control over whitespace. The |
Signed-off-by: Ronald Barnes <[email protected]>
Hello @phofl, I am curious what your opinion is of this technique to resolve the issues (you had chimed in on a previous PR which documented the existing situation, preferring a fix instead)? Thanks! |
This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this. |
Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen. |
Hi @mroeschke, I've merged in with main... Should I open a new PR or can we re-open this one? Thank you... |
Thanks I reopened this pull request. |
I don't understand the issue here - no warnings, 0 files failed, yet exit code indicates an error? About 450 lines into the report on the failed test:
Is this a "me" thing, or an issue with the CI/CD tests? Thank you for any pointers that I can use to resolve this. |
Thanks for the pull request, but it appears to have gone stale. Additionally from the original discussion in #49832, this probably needs more discussion on the original issue (from a core dev familiar with |
doc/source/whatsnew/v2.0.0.rst
file if fixing a bug or adding a new feature.